package cn.mg.framework.util.common;

import java.net.InetAddress;
import java.net.UnknownHostException;

public class HostUtil {
	
	public static String getHostName() throws UnknownHostException{
		//获取ip地址
    	InetAddress myIP = InetAddress.getLocalHost();
    	String hostName = myIP.getHostName();
    	return hostName;
	}

}
